package com.property.mapper;

import com.property.pojo.Building;
import com.property.pojo.Resident;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;


import java.util.List;
@Mapper
@Component
public interface ResidentMapper {
    //查询所有住户
    List<Resident> findAllResident();
    //新增住户
    int saveResident(Resident resident);
    //删除住户
    int deleteResident(Integer rId);
    //通过id查询住户
    Resident findResidentByrId(Integer rId);
    //更新住户
    int updateResident(Resident resident);
    //通过id查询住户信息
    List<Resident> findResidentByrBid(Integer rBid);
    //通过名字查询住户信息
    Resident findResidentByrName(String rName);
}
